﻿/**************************
 * Author: Hoangvx6b
 * Date: 02/04/2013
 * Module: Back up
 * Project: OFB
 **************************/

using System;
using System.Collections.Generic;
using OFB.BLL.ViewModel.Backup;
using OFB.Domain;

namespace OFB.BLL.Repository
{
    /// <summary>
    /// Interface define all logic method of criteria
    /// </summary>
    public interface IBackupBLL
    {
        ICollection<BackupYear> GetBackupYear(bool isBackuped = false);
        ICollection<Course> GetCourses(int year, bool isBackuped = false);
        ICollection<BackUpTable> GetCoursesBackuped(int year, bool isBackuped = true);
        ICollection<Subject> GetSubjects(int courseId);
        ICollection<BackupTrainer> GetTrainers(int courseId, int? subjectId = null);
        ICollection<BackupTopic> GetTopics(int courseId, int subjectId, string trainerId = null);
        ICollection<BackupView> GetBackupView(int courseId, int subject, string trainerId = null, int? topicId= null, DateTime? fromDate = null, DateTime? toDate = null); 
        int CreateBackup(string year, int courseId);
    }
}
